package ui.prefabricated;

import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;

/**
 * 
 * An audeo file will be played when this adapter works!
 * @author wjp
 *
 */
abstract public class AudioMouseAdapter implements MouseListener{
	protected String 					 audioURL;
	private void                         playAudio()
	{
		// pending...
	}
	public AudioMouseAdapter(String url)
	{
		audioURL=url;
	}
	public void							 mouseDown(MouseEvent e)
	{
		playAudio();
		mouseDownStrategy(e);
	}
	public void 						 mouseUp(MouseEvent e){}
	public void							 mouseDoubleClick(MouseEvent e){}
	abstract public void 				 mouseDownStrategy(MouseEvent e);
}
